<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // arr = [1, 2, 3];
      // Math.min(...arr);

      class Person {
        constructor(name, age) {
          this.name = name;
          this.age = age;
        }
      }
      class Human extends Person {
        // constructor(name, age) {
        constructor(...arg) {
          // arg = [lili,21]
          super(...arg);
          // super(name, age);
          this.gender = "boy";
        }
      }
      const p = new Human("lili", 21);
      console.log(p);
    </script>
  </body>
</html>
